<template>
  <div class="big-screen">
    <div class="big-screen-title" :style="titleStyle"></div>
    <slot></slot>
  </div>
</template>

<style lang="scss" scoped>
  *{
    box-sizing: border-box;
  }
  .big-screen {
    width: 100%;
    height: 100%;
    padding:0 20px 20px;
    background: url("../assets/images/bigscreen_bg.png") center center no-repeat;
    background-size: cover;
  }

  .big-screen-title {
    width: 715px;
    height: 80px;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0)
  }
</style>

<script>
  export default {
    /**
     * titleUrl: require('../assets/images/data_monitor_title.png')
     */
    props: {
      titleUrl: {
        type: String
      }
    },
    computed: {
      titleStyle() {
        return {
          backgroundImage: 'url("' + this.titleUrl + '")'
        }
      }
    }
  }
</script>
